package com.itheima.job3;

public  class Manager extends Employee {
    private  Clerk clerk;//职员

    public Manager() {
    }

    @Override
    public void shwMsg(Clerk clerk, Manager manager) {
        System.out.println(manager.getDept()+"的："+manager.getName()+"，员工编号："+manager.getId()+"他的职员是"+manager.getClerk().getName());
    }


    public Manager(String name, String id, String dept, Clerk clerk) {
        super(name, id, dept);
        this.clerk = clerk;
    }

    public Clerk getClerk() {
        return clerk;
    }

    public void setClerk(Clerk clerk) {
        this.clerk = clerk;
    }


}
